#include"SloSplitTool.h"
SloSplitTool* SloSplitTool::pslos=nullptr;
SloSplitTool::SloSplitTool()
:_jieba(DICT_PATH,HMM_PATH,USER_DICT_PATH,IDF_PATH,STOP_WORD_PATH)
{}
SloSplitTool*SloSplitTool::getInstance(){
    if(pslos==nullptr){
        pslos=new SloSplitTool();
    }
    return pslos;
}
vector<string> SloSplitTool::cut(string content){
    vector<string> words;
    _jieba.Cut(content,words,true);
    return words;
}